import { createRouter, createWebHashHistory } from "vue-router";
import { ConstRouter } from "@/router/route";
let router = createRouter({
  //设置路由模式
  history: createWebHashHistory(),
  routes: ConstRouter,
  //滚动行为
  scrollBehavior() {
    return {
      top: 0,
      left: 0,
    };
  },
});

export default router;
